import React from 'react';
import { Row, Col, Alert } from 'antd';
import formConfig from 'shared/utils/formConfig';
/* eslint-disable */
const ErrorAlert = ({ error, type, message }) => {
  return error ?
    <Row>
      <Col {...formConfig.formItemLayout.labelCol} />
      <Col {...formConfig.formItemLayout.wrapperCol}>
        <Alert type={type} message={message} />
        <br />
      </Col>
    </Row > : null
}
export default ErrorAlert;
